<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="/struts-tags" prefix="s" %>

		<link rel="stylesheet" type="text/css" href="css/front/header.css" />
		<link rel="stylesheet" type="text/css" href="css/front/login.css" />
		<script type="text/javascript" src="js/front/header.js"></script>
		<script type="text/javascript" src="lib/popup/js/popup.js"></script>
		<link rel="stylesheet" type="text/css" href="lib/tip/css/showtip.css" />
		<link rel="stylesheet" type="text/css" href="lib/tip/css/showtip3.css" />
		<link rel="stylesheet" type="text/css" href="css/front/check.css" />
		<script type="text/javascript" src="lib/tip/js/showtip.js"></script>
		<script type="text/javascript" src="lib/tip/js/showtip3.js"></script>
		<script type="text/javascript" src="js/front/load_image.js"></script>
		<script type="text/javascript" src="js/front/check_login.js"></script>
		<script type="text/javascript" src="js/front/check_register.js"></script>
		
		
		<div class="header png">
			<div class="headerTop">
				<div class="headerTopContent">
					<div class="headerLoginInfo">
						您好<span id="headerLoginMemberUsername"><s:property value="#session.user.signInName" /></span>，欢迎来到BookMarket！
						<s:if test="#session.user==null">
							<% if (request.getParameter("login") == null) { %>
						<a href="javascript:void(0);" onclick="showLogin();">登录</a>
							<% } %>
						<a href="javascript:void(0);" onclick="showRegister();">注册</a>
						</s:if><s:else>
						<a style="display: inline;" href="enterMyMarket.do">会员中心</a>
						<a href="userLogout.do">[退出]</a>
						</s:else>
					</div>
					<div class="headerTopNav">
						<a href="javascript:void(0);">收藏本站</a> | 
						<a href="#">帮助中心</a> | 
						<a href="#">联系我们</a>
					</div>
				</div>
			</div>
			<div class="headerMiddle">
				<div class="headerInfo">
					7×24小时服务热线：<strong>222-2222222</strong>
				</div>
				<div class="headerLogo">
					<a href="#"><img src="img/logo.png" title="BookMarket"></a>
				</div>
				<div class="headerSearch">
					<form id="searchForm" action="searchBooks.do" method="get">
						<div class="headerSearchText">
							<input type="text" id="searchKeyword" name="title" value="请输入关键词..." class="gray" onfocus="inputFocus();" onblur="inputBlur();">
						</div>
						<input class="headerSearchButton" value="" type="submit">
					</form>
					<div class="advancedSearch"><a href="advancedSearch.do">高级搜索</a></div>
					<div class="hotKeyword">
						热门关键词: 
						<a href="#">Java</a>
						<a href="#">Android</a>
						<a href="#">Spring</a>
						<a href="#">Struts</a>
					</div>
				</div>
			</div>
			<div class="headerBottom">
				<div class="headerMiddleNav">
					<div class="headerMiddleNavLeft"></div>
					<ul class="headerMiddleNavContent">
						<li><a href="#">首页</a></li>
						<s:subset source="#session.mainCategories" count="10">
							<s:iterator>
						<li><a href="#"><s:property value="name" /></a></li>
							</s:iterator>
						</s:subset>
					</ul>
					<div class="headerMiddleNavRight"></div>
				</div>
				<input type="button" class="cartButton" onclick="window.location.href='viewCart.do'"  onmouseover="showCart(event)" onmouseout="tooltips.hidetips();" />
				<ul style="display: none;" id="cartItemListDetail">
					<li>您的购物车中暂无商品！</li>
				</ul>
				<input class="orderButton" value="" onclick="" type="button">
			</div>
		</div>